const puppeteer = require('puppeteer');
(async ()=> {
    /* 1.新建一个浏览器的实例 */
    const browser = await puppeteer.launch({
        headless:false,
        defaultViewport:null
    });
    /* 2.新建一个页面 */
    const page = await browser.newPage();
    /* 3.到达某个页面 */
    await page.goto('https://gitee.com/login');
    var username = await page.$("#user_login");
    await username.type("15827122455");
    var pwd = await page.$("#user_password");
    await pwd.type("zz370531");
    var submit = await page.$(".submit")
    await submit.click();
    await page.waitForTimeout(3000)
})();